package com.ys.exception;


import com.ys.constant.ShopCode;

/**
 * 异常抛出类
 */
//@Slf4j
public class CastException {
    public static void cast(ShopCode shopCode) {
        //log.error(shopCode.toString());
        System.err.println(shopCode.toString());
        throw new CustomerException(shopCode);
    }
}
